package com.ruoyi.system.domain.qo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 预警列表
 *
 * @author ruoyi
 */
@Data
@ApiModel("预警列表查询条件")
public class AlertListQo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    @ApiModelProperty(value = "设备标识")
    private String deviceIdentifier;

    @ApiModelProperty(value = "预警级别（0低 1中 2高）")
    private String alertLevel;

    @ApiModelProperty(value = "预警状态（0 - 正在预警 1 - 已解决）")
    private String alertStatus;

    @ApiModelProperty(value = "预警内容", required = true)
    private String alertName;

    @ApiModelProperty(value = "预警内容", required = true)
    private String alertContent;

    @ApiModelProperty(value = "预警时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date alertStartTime;

    @ApiModelProperty(value = "预警时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date alertEndTime;
}